package agency.tango.materialintroscreen.animations.wrappers;

import ohos.agp.components.Component;

import agency.tango.materialintroscreen.animations.ViewTranslationWrapper;
import agency.tango.materialintroscreen.animations.translations.DefaultPositionTranslation;
import agency.tango.materialintroscreen.animations.translations.EnterDefaultTranslation;
import agency.tango.materialintroscreen.animations.translations.ExitDefaultTranslation;

/**
 * @ProjectName: material-intro-screen-master
 * @Package: agency.tango.materialintroscreen.animations.wrappers
 * @ClassName: BackButtonTranslationWrapper
 * @Description: 返回按键滑动行为动画设置类(进入动画 默认动画 退出动画)
 * @CreateDate: 2021/4/12 15:57
 * @UpdateDate: 2021/4/12 15:57
 * @UpdateRemark: 暂无
 * @Version: 1.0
 */
public class BackButtonTranslationWrapper extends ViewTranslationWrapper {
    public BackButtonTranslationWrapper(Component view) {
        super(view);
        setEnterTranslation(new EnterDefaultTranslation())
                .setDefaultTranslation(new DefaultPositionTranslation())
                .setExitTranslation(new ExitDefaultTranslation());
    }
}